package com.hsogoo.avatar;

import java.net.InetSocketAddress;
import java.net.SocketAddress;

import com.hsogoo.avatar.enums.Protocol;
import com.hsogoo.avatar.processor.DefaultAvatarProcessor;
import com.hsogoo.avatar.transport.netty.AvatarNettyAcceptor;

/**
 * @Author huangsaigang
 * Created @2018/9/30.
 */
public class ServerTest {

    public static void main(String[] args) throws Exception {
        SocketAddress address = new InetSocketAddress("localhost", 8888);
        AvatarNettyAcceptor acceptor = new AvatarNettyAcceptor(Protocol.AVATAR, address);
        acceptor.withProcessor(new DefaultAvatarProcessor());
        acceptor.start();
    }
}
